package com.quickpass.order.controller;

import com.quickpass.order.domain.Order;
import com.quickpass.order.domain.OrderDTO;
import com.quickpass.order.service.OrderService;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.InnerAuth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @description:
 * @author: 弔人
 * @time: 2023/2/6 9:49
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    private OrderService orderService;

    /**
     * @description: 下单
     * @return:
     * @author: 弔人
     * @time: 2023/2/7 0:02
     */
    @PostMapping("/createOrder")
    public AjaxResult crea(OrderDTO orderDTO){
        return orderService.createOrder(orderDTO);
    }


}
